<?php
if ($_GET['task'] == "update") {
   $title = "Sửa thông tin";
}
else $title = " Thêm thông tin";
?>
<div class="page-product">
   <div class="page-title">
      <i class="icon-custom-left"></i>
      <h3><?echo $title;?> <span class="semi-bold">Group <?php echo $_GET['id']?></span></h3>
   </div>
   <div class="row">
      <div class="col-md-12">
         <div class="grid simple">
            <div class="grid-title no-border">
               <h4>Bảng <span class="semi-bold">Thông Tin</span></h4>
            </div>
            <div class="grid-body no-border">
               <form class="form-no-horizontal-spacing" id="form-condensed f_group" novalidate="novalidate" method="post">
                  <div class="row column-seperation">
                     <div class="col-md-12">
                        <div class="row form-row">
                           <div class="col-md-1">
                              <input name="id" type="text" class="form-control id" value="<?php if($this->results['group']) echo $this->results['group']->getId()?>" placeholder="ID" readonly="readonly">
                           </div>
                           <div class="col-md-4">
                              <input name="title"type="text" class="form-control" value="<?php if($this->results['group']) echo $this->results['group']->getTitle()?>" placeholder="Tên Group">
                           </div>
                           <div class="col-md-3">
                              <div class="radio radio-primary" style="margin-top: 7px;">
                                 <input id="hidd" type="radio" name="status" value="0" <?php if($this->results['group']) { if(!$this->results['group']->getStatus()) echo "checked='checked'";} ?>>
                                 <label for="hidd">Active</label>
                                 <input id="show" type="radio" name="status" value="1" <?php if($this->results['group']) { if($this->results['group']->getStatus()) echo "checked='checked'";} ?>>
                                 <label for="show">Deactive</label>
                              </div>
                           </div>
                           <div class="col-md-4">
                              <select name="parent_id" id="form3Gender" class="select2 form-control"  >
                                 <?php echo $this->parentGroup['optionCategory'] ?>
                              </select>
                           </div>
                        </div>
                        <div class="row form-row">
                           <div class="col-md-6">
                             <textarea name="parameters" class="editor" style="width:100%" placeholder="Parameters"><?php if($this->results['group']) echo $this->results['group']->getParameters()?></textarea>
                          </div>
                          <div class="col-md-6">
                             <textarea name="notes" class="editor" style="width:100%" placeholder="Notes"><?php if($this->results['group']) echo $this->results['group']->getNotes()?></textarea>
                          </div>
                       </div>
                    </div>
                 </div>
                 <div class="form-actions">
                  <div class="pull-right">
                     <button class="btn btn-danger btn-cons btn_reg" type="submit" ><i class="icon-ok"></i>Lưu Lại</button>
                     <a href="index.php?com=com_user&view=groups" class="btn btn-white btn-cons" onclick="return confirm('Bạn chắc chắn thoát ????')">Thoát</a>
                  </div>
               </div>
            </form>
         </div>
      </div>
   </div>
</div>
</div>